#include <stdio.h>
#include <math.h>
int main ()
{
    int i,a,b,n;
    float p,x;
    scanf("%d",&n);
    for(i=0;i<n;i++)
    {
	    scanf("%d%d",&a,&b);
        p=(a-100)*1.8;
        x=b/p-1;
        if(fabs(x)<=0.1)
            printf("You are wan mei!\n");
        else if(b>p)
            printf("You are tai pang le!\n");
        else 
            printf("You are tai shou le!\n");
    }
    return 0;
}
